/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Behavioral.Iterator;

/**
 *
 * @author Demoni
 */
public class Carrera {
    private Alumno[] alumno = new Alumno[100];
    private int numero = 0 ;
    private String descripcionCarrera;
    
public Carrera(String n){
    descripcionCarrera = n;
}

public String getName(String nom){
    return descripcionCarrera;
}

public void add(String nom){
    Alumno a = new Alumno(nom, descripcionCarrera);
    alumno[numero++] = a;
}

public CarreraIterator iterator(){
    return new CarreraIterator(alumno);
}
}
